<?php
include '../../operations/connection.php';
$a= (string)(microtime(true)*1000);
$b=split('\.',$a);
$idcomment= $b[0];

$id_testproject = $_REQUEST['idtestproject'];
$newlang = $_REQUEST['newlang'];
		
		if ($_REQUEST['newlang'] == "EN") {
			include "../../value/value_en.php";
		} else if($_REQUEST['newlang'] == "VN") {
			include "../../value/value_vn.php";
		}
		else {
			include "../../value/value_kr.php";
		}
		
$sqlupdate = "UPDATE pr_testproject SET `Status` = 1 WHERE IDTest = '$id_testproject'";
mysql_query($sqlupdate);

$id = $_REQUEST['idproject'];
$id_employee = $_REQUEST['idemp'];
$labelfixed = $l_fix_complete."-%$#@!-#424242";
//$commentvalue= str_replace('\\r\\n','<br>',$comment."-%$#@!-#".$stylecolor);
$sqladdcomment = "insert into pr_comment(IDComment,IDTestProject,IDEmployee,`Comment`,DateComment)
 VALUES('$idcomment','$id_testproject','$id_employee','$labelfixed',NOW())";
mysql_query($sqladdcomment);

$username = $_SESSION['fullname'];
$id_employee = $_SESSION['IDEmployee'];
if($username!=""){
	$sqlinserttestpro = "UPDATE pr_testproject SET Comment_Last = '$labelfixed', NameEmployee_Last = '$username'
							WHERE IDTest = '$id_testproject' ";
	mysql_query($sqlinserttestpro);
}
$page = isset ( $_REQUEST["page"] ) ? intval ( $_REQUEST["page"] ) : 1;

include 'inlude_listerror.php';

mysql_close($connection);?>